<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>移入弹出大图</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            position: relative;
        }
        .box1{
            width: 200px;
            height: 200px;
        }
        .box2{
            width: 400px;
            height: 400px;
            position: absolute;
            top: 0;
            left: 300px;
            display: none;
        }
        .box:hover .box2{
            display: block;
            /* 移入放大的设计思路是，放置两种不同大小的图片，大图做隐藏，给小图的容器一个鼠标移入的 hover连接，
            当鼠标移入小图容器范围时，把大图的隐藏设置成 block。 */
        }
    </style>
</head>

<body>
    <div>
        <div class="box">
            <img src="../image/1.jpg" alt="" class="box1">
            <img src="../image/1.jpg" alt="" class="box2">
        </div>
    </div>
</body>

</html>